package com.translate.web.service.impl;

import com.translate.web.dao.NoticeUserMapper;
import com.translate.entity.NoticeUser;
import com.translate.web.service.INoticeUserService;
import com.basic.service.impl.BaseServiceImpl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

@Service
public class NoticeUserServiceImpl extends BaseServiceImpl<NoticeUser> implements INoticeUserService {
	public NoticeUserServiceImpl(NoticeUserMapper mapper) {
		super(mapper);
	}

	protected void insertPropteris(NoticeUser data) {
		// long time = System.currentTimeMillis() / 1000;
		// data.setCreateTime(time);
		// data.setUpdateTime(time);
	}

	protected void updatePropteris(NoticeUser data) {
		// data.setUpdateTime(System.currentTimeMillis() / 1000);
	}

	protected Class<NoticeUser> getEntityClass() {
		return NoticeUser.class;
	}

	@Override
	public List<NoticeUser> selectedDataByUserId(long[] ids) {
		
		if (0 == ids.length) {
			return new ArrayList<NoticeUser>(0);
		}
		// TODO Auto-generated method stub
		return this.getBaseMapper().getDataByIds(ids);
	}
}